﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using GameBase;

namespace _0912089
{
    public class Map : VisibleGameEntity
    {
        private Texture2D _background;

        public Map(string background)
        {
            _background = Constant.content.Load<Texture2D>(background);
        }

        public Map(Texture2D background)
        {
            _background = background;
        }

        public override void draw(GameTime gameTime, SpriteBatch spriteBatch, Color color)
        {
            spriteBatch.Draw(_background, new Vector2(0,0), null, Color.White, 0, Vector2.Zero, 1, SpriteEffects.None, 0);
        }        
    }
}
